<template>
	<rui-pages>
		<view class="container">
			<view class="head">
				<view class="title">
					{{info.title}}
				</view>
				<view class="date">
					{{info.created_at}}
				</view>
			</view>
			<rui-card>
				<view class="content" v-html="info.content">

				</view>
			</rui-card>
		</view>

	</rui-pages>
</template>

<script setup>
	import {
		ref
	} from "vue";
	import {
		onLoad
	} from "@dcloudio/uni-app"
	import {
		getHelpDetail
	} from "@/common/api.js"

	let info = ref({})
	onLoad(opts => {
		getHelpDetail({
			id: opts.id
		}).then(res => {
			info.value = res.data;
		})
	})
</script>

<style lang="scss">
	.container {
		.head {
			margin: 20rpx;

			.title {
				font-size: 38rpx;
				font-weight: bold;
			}

			.date {
				color: #999;
			}
		}


		.content {
			// margin-top: 30rpx;
			line-height: 55rpx;
		}
	}
</style>